<!DOCTYPE html>
<html>
<head lang="zh">
    <meta charset="UTF-8">
    <title></title>
</head>
<script type="text/javascript" src="<%=application.getContextPath()%>/resources/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
    function add(){
        $.ajax({
            url:"http://127.0.0.1:8089/itominter/rest/workOrderFlow/getWorkOrderList",
            type:"post",
            dataType:"json",
            success:function(data){
                // 将json字符串转换为json数组
                var obj = eval("(" + data.target.responseText + ")");
                alert(obj);
            },
            error:function(){
                alert("error");
            }
        });
    }

</script>
<body>
<button onclick="add()">add</button>

</body>
</html>
